package com.qf.service.impl;

import com.qf.entity.StudentVO;
import com.qf.mapper.StudentMapper;
import com.qf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public List<StudentVO> findAllStudentAndClassroom() {
        return studentMapper.findAllStudentAndClassroom();
    }

    @Override
    public StudentVO findStudentWithSubjectsById(Integer id) {
        return studentMapper.findStudentWithSubjectsById( id);
    }

    @Override
    public StudentVO findStudentAndAllSubjectAndTeacherByStuid(int sid) {
        return studentMapper.findStudentAndAllSubjectAndTeacherByStuid( sid);
    }
}
